﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using HotelSoft.HotelManagement_DAO;
using HotelSoft.HotelManagement_DTO;
using System.Data;


namespace HotelSoft.HotelManagement_BUS
{
    public class KhachHangBUS : AbstractBUS
    {
        private KhachHangDAO dao = new KhachHangDAO();
        public DataTable laySoPDK()
        {
            return dao.laybangLuu_PHIEUDANGKY();
        }
        public bool ThemKHACHHANG_PHIEUDANGKY(object AbstractDTO)
        {
            return dao.ThemKHACHHANG_PHIEUDANGKY(AbstractDTO);
        }
        public DataTable SellectAll()
        {
            return dao.SellectAll();
        }
        public ArrayList LayDanhSachKhachHang()
        {
            return dao.LayDanhSachKhachHang();
        }

        public DataTable Selectkhachhangtheocmn(object AbstractDTO)
        {
            return KhachHangDAO.Selectkhachhangtheocmn(AbstractDTO);
        }

        public override bool Them(object AbstractDTO)
        {
            return dao.Them(AbstractDTO);
        }

        public override void Xoa(ArrayList dsPhong)
        {
            dao.Xoa(dsPhong);
        }

        public override bool CapNhatThongTin(object AbstractDTO)
        {
            return dao.CapNhatThongTin(AbstractDTO);
        }

        public ArrayList TraCuuKhachHang(ArrayList dsKhachHang, KhachHangDTO dtoNhanVienCanTraCuu)
        {
            return dao.TraCuuKhachHang(dsKhachHang, dtoNhanVienCanTraCuu);
        }

        public bool KTMA(object AbstractDTO)
        {
            return dao.KTMA(AbstractDTO);
        }

        public int Timkhachhang(object AbstractDTO)
        {
            return KhachHangDAO.Timkhachhang(AbstractDTO);
        }
    }
}
